import '../../utils/concrete'
/* 查询停车流水详细信息 */
export function searchParkingDetail(parkingForm, pageNum, pageSize) {
  const data = {
    condition: {
      account: parkingForm.accountNo,
      accounttype: parkingForm.dataType,
      carno: parkingForm.parkNo,
      cartype: parkingForm.carType,
      chargeunit: parkingForm.roadno,
      edate: parkingForm.operateTime[1],
      erepaydate: parkingForm.backTime[1],
      orgno: parkingForm.dw,
      outtype: parkingForm.outType,
      parkno: parkingForm.parkno,
      placeno: parkingForm.berthNo,
      repayflag: parkingForm.backState,
      repaytype: parkingForm.backType.length === 0 ? null : parkingForm.backType,
      repayusersfzhm: parkingForm.backPersonno,
      sdate: parkingForm.operateTime[0],
      srepaydate: parkingForm.backTime[0],
      type: parkingForm.type,
      usersfzhm: parkingForm.personno
    },
    pageSize: pageSize,
    num: pageNum
  }
  return concrete.module('BusinessQueryService').statReportByCar(data)
}
/* 根据流水号查询取证照片 */
export function getDetailPic(param) {
  const data = {
    condition: {},
    num: 1,
    pageSize: 100
  }
  console.log(data)
  console.log(param)
  return concrete.module('BusinessQueryService').selectProveDetails(data, param)
}
